package com.kuang.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kuang.blog.entity.Order;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wxy
 * @since 2023-07-04
 */
public interface OrderService extends IService<Order> {
    /*分页查询*/
    List<Order> orderPage(Order orderpage);

    IPage findPage(HttpServletResponse response,Integer pageSize, Integer pageNum);

    void uploadMP4(MultipartFile file);

    /**
     * 多线程生成excel压缩zip到浏览器下载
     *
     * @param zipPath            自定义本地存放zip路径
     * @param excelDirectoryPath 自定义本地存放excel目录路径
     * @param response           响应
     * @return {@link Boolean}
     */
    Boolean addExcel(String zipPath,String excelDirectoryPath,HttpServletResponse response);
}
